#将URL各部分组合成完整链接

from urllib.parse import  urlunparse

data = ['http','www.baidu.com','index.html','user','a=6','comment']
print(urlunparse(data))